<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function() {
		// 初始化
		$('#student_certificateAdd_certNameText').prop('readonly', false);
		$('#student_certificateAdd_certNoText').prop('readonly', false);
		$('#student_certificateAdd_drawPersonText').prop('readonly', true);
		$('#student_certificateAdd_drawPersonText').val('');
		
		// 事件
		$('#student_certificateAdd_unfinishRadio').click(function() {
			$('#student_certificateAdd_certNameText').prop('readonly', true);
			$('#student_certificateAdd_certNameText').val('');
			
			$('#student_certificateAdd_certNoText').prop('readonly', true);
			$('#student_certificateAdd_certNoText').val('');
		});
		
		$('#student_certificateAdd_finishRadio').click(function() {
			$('#student_certificateAdd_certNameText').prop('readonly', false);
			$('#student_certificateAdd_certNameText').val('');
			
			$('#student_certificateAdd_certNoText').prop('readonly', false);
			$('#student_certificateAdd_certNoText').val('');
		});
		
		$('#student_certificateAdd_selfDrawRadio').click(function() {
			$('#student_certificateAdd_drawPersonText').prop('readonly', true);
			$('#student_certificateAdd_drawPersonText').val('');
		});
		
		$('#student_certificateAdd_otherDrawRadio').click(function() {
			$('#student_certificateAdd_drawPersonText').prop('readonly', false);
			$('#student_certificateAdd_drawPersonText').val('');
		});
		
	});
</script>
<form id="student_certificateAdd_addCertificateForm" method="post">
	<table>
		<tr>
			<td style="text-align: right;">学生：</td>
			<td><input name="studentName" class="easyui-validatebox" data-options="required:true,missingMessage:'必填项'" style="width: 240px;" readonly="readonly" />&nbsp;
				<button type="button" onclick="openStudentDialog()">浏览</button></td>
		</tr>
		<tr>
			<td style="text-align: right;">学号：</td>
			<td><input name="studentNo" style="width: 240px;" readonly="readonly" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">毕业情况：</td>
			<td><input id="student_certificateAdd_finishRadio" type="radio" name="finishFlag" value="01" checked="checked" />&nbsp;已毕业 <input id="student_certificateAdd_unfinishRadio" type="radio" name="finishFlag" value="02" />&nbsp;未毕业</td>
		</tr>
		<tr>
			<td style="text-align: right;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;证书名称：</td>
			<td><input id="student_certificateAdd_certNameText" name="certificateName" style="width:320px;" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">证书编号：</td>
			<td><input id="student_certificateAdd_certNoText" name="certificateNo" style="width:320px;" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">领取方式：</td>
			<td><input id="student_certificateAdd_selfDrawRadio" type="radio" name="drawMethod" value="01" checked="checked" />&nbsp;本人领取
			<input id="student_certificateAdd_otherDrawRadio" type="radio" name="drawMethod" value="02" />&nbsp;他人代领</td>
		</tr>
		<tr>
			<td style="text-align: right;">代领人：</td>
			<td><input id="student_certificateAdd_drawPersonText" name="drawPerson" style="width: 240px;" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">备注：</td>
			<td><textarea name="memo" style="width:320px;"></textarea></td>
		</tr>
	</table>
	<input name="studentId" type="hidden" />
</form>